package com.warmheart.core.constant;

import java.util.Arrays;
import java.util.List;

/**
 * TODO
 *
 * @author 杨飞
 * @module TODO
 */
public class BaseConstant {

    /**
     * 支付方式-银联云闪付
     */
    public static final String PAY_TYPE_UNION = "2";
    /**
     * 支付方式-支付宝支付
     */
    public static final String PAY_TYPE_ALIPAY = "3";
    /**
     * 支付方式-微信支付
     */
    public static final String PAY_TYPE_WECHAT = "4";


    /**
     * 支付状态-未支付
     */
    public static final String TRADE_STATUS_NOT_PAY = "0";
    /**
     * 支付状态-支付成功
     */
    public static final String TRADE_STATUS_SUCCESS = "1";
    /**
     * 支付状态-支付失败
     */
    public static final String TRADE_STATUS_PAY_ERROR = "2";
    /**
     * 支付状态-订单已关闭
     */
    public static final String TRADE_STATUS_CLOSED = "3";
    /**
     * 支付状态-订单完成（支付宝特有状态，不可退款不可关闭）
     */
    public static final String TRADE_STATUS_FINISH = "4";
    /**
     * 支付状态-转入退款
     */
    public static final String TRADE_STATUS_REFUND = "5";
    /**
     * 支付状态-6 交易撤销
     */
    public static final String TRADE_STATUS_REVOKE = "6";
    /**
     * 支付状态-交易支付中
     */
    public static final String TRADE_STATUS_PAYING = "7";
    public static final List<String> TRADE_STATUS_LIST =
            Arrays.asList(TRADE_STATUS_NOT_PAY, TRADE_STATUS_SUCCESS, TRADE_STATUS_PAY_ERROR, TRADE_STATUS_CLOSED,
                    TRADE_STATUS_FINISH, TRADE_STATUS_REFUND, TRADE_STATUS_REVOKE, TRADE_STATUS_PAYING);

    public static final List<String> SYNC_STATUS_LIST = Arrays.asList(TRADE_STATUS_NOT_PAY, TRADE_STATUS_PAYING);



    public static final String REFUND_STATUS_NOT_ACCEPT = "0";
    public static final String REFUND_STATUS_ACCEPT = "1";
    public static final String REFUND_STATUS_SUCCESS = "2";
    public static final String REFUND_STATUS_FAIL = "3";
    public static final List<String> REFUND_STATUS_LIST = Arrays.asList(REFUND_STATUS_NOT_ACCEPT, REFUND_STATUS_ACCEPT, REFUND_STATUS_SUCCESS, REFUND_STATUS_FAIL);

}
